﻿export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        name: 'login',
        path: '/user/login',
        component: './user/Login',
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/admin',
    name: '系统管理',
    routes: [
      {
        path: '/admin/userManagement',
        name: '用户管理',
        icon: 'smile',
        access: 'normalRouteFilter',
        component: './gptChats',
        key: 'userManagement',
      },
      {
        path: '/admin/companyOffice',
        name: '组织管理',
        icon: 'smile',
        access: 'normalRouteFilter',
        component: './gptChats',
        key: 'companyOffice',
      },
      {
        path: '/admin/shiroCenter',
        name: '角色管理',
        icon: 'smile',
        access: 'normalRouteFilter',
        component: './gptChats',
        key: 'shiroCenter',
      },
      {
        path: '/admin/menuManagement',
        name: '菜单管理',
        icon: 'smile',
        access: 'normalRouteFilter',
        component: './gptChats',
        key: 'menuManagement',
      },
      {
        path: '/admin/logManagement',
        name: '日志管理',
        icon: 'smile',
        access: 'normalRouteFilter',
        component: './gptChats',
        key: 'logManagement',
      },
      {
        path: '/admin/dictManagement',
        name: '字典管理',
        icon: 'smile',
        access: 'normalRouteFilter',
        component: './gptChats',
        key: 'dictManagement',
      },
    ],
  },
  {
    path: '/yw',
    name: '业务管理',
    icon: 'smile',
    routes: [
      {
        path: '/yw/gptChats',
        name: 'ChatGPT',
        icon: 'smile',
        access: 'normalRouteFilter',
        component: './gptChats',
        key: 'gptChats',
      },
      {
        path: '/yw/autoGpt',
        name: 'AutoGPT',
        icon: 'smile',
        access: 'normalRouteFilter',
        component: './gptChats',
        key: 'autoGpt',
      },
      {
        path: '/yw/project',
        name: '项目管理',
        icon: 'smile',
        access: 'normalRouteFilter',
        component: './gptChats',
        key: 'project',
      },
      {
        path: '/yw/businessReport',
        name: '行研数据库',
        icon: 'smile',
        access: 'normalRouteFilter',
        component: './businessReport',
        key: 'businessReport',
      },
      {
        path: '/yw/investor',
        name: '机构数据库',
        icon: 'smile',
        access: 'normalRouteFilter',
        component: './gptChats',
        key: 'investor',
      },
      {
        path: '/yw/connection',
        name: '人脉数据库',
        icon: 'smile',
        access: 'normalRouteFilter',
        component: './gptChats',
        key: 'connection',
      },
      {
        path: '/yw/knowledgeBase',
        name: '文档素材库',
        icon: 'smile',
        access: 'normalRouteFilter',
        component: './gptChats',
        key: 'knowledgeBase',
      },
      {
        path: '/yw/company',
        name: '企业数据库',
        icon: 'smile',
        access: 'normalRouteFilter',
        component: './gptChats',
        key: 'company',
      },
      {
        path: '/yw/bookmark',
        name: '常用网站管理',
        icon: 'smile',
        access: 'normalRouteFilter',
        component: './gptChats',
        key: 'bookmark',
      },
      {
        path: '/yw/chatTemplate',
        name: 'GPT指令模板',
        icon: 'smile',
        access: 'normalRouteFilter',
        component: './gptChats',
        key: 'chatTemplate',
      },
      {
        path: '/yw/textSearch',
        name: '文本搜索',
        icon: 'smile',
        access: 'normalRouteFilter',
        component: './gptChats',
        key: 'textSearch',
      },
      {
        path: '/yw/industry',
        name: '领域管理',
        icon: 'smile',
        access: 'normalRouteFilter',
        component: './gptChats',
        key: 'industry',
      },
      {
        path: '/yw/industryRacetrack',
        name: '赛道管理',
        icon: 'smile',
        access: 'normalRouteFilter',
        component: './gptChats',
        key: 'industryRacetrack',
      },
      {
        path: '/yw/dataLabel',
        name: '数据标签',
        icon: 'smile',
        access: 'normalRouteFilter',
        component: './gptChats',
        key: 'dataLabel',
      },
      {
        path: '/yw/dataLabel',
        name: '始终有这个菜单',
        icon: 'smile',
        component: './gptChats',
        key: 'dataLabel',
      },
    ],
  },
];

// let arr = [];
// let newarr = [];
// arr[0].children.map((e) => {
//   newarr.push({
//     path: '/yw/' + e.href,
//     name: e.name,
//     icon: 'smile',
//     access: 'normalRouteFilter',
//     component: './gptChats',
//     key: e.href,
//   });
// });
